package com.innovations.inn.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.innovations.common.annotation.Excel;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 科研成果评价回复对象 research_outcomes_replies
 *
 * @author dp
 * @date 2024-08-09
 */
@Data
public class ResearchOutcomesReplies {
    private static final long serialVersionUID = 1L;

    /**
     * 回复标识
     */
    private Long repliesId;

    /**
     * 评价标识
     */
    @Excel(name = "评价标识")
    private Long reviewsId;

    /**
     * 回复人
     */
    @Excel(name = "回复人")
    private Long repliesBy;

    /**
     * 回复内容
     */
    @Excel(name = "回复内容")
    private String replyText;

    /**
     * 回复时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "回复时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date replyTime;

    /**
     * 状态;0：待审核；1：审核通过；2：审核不通过；3：自动审核；
     */
    @Excel(name = "状态;0：待审核；1：审核通过；2：审核不通过；3：自动审核；")
    private Long state;

    /**
     * 逻辑删除;1：是；0：否；
     */
    @Excel(name = "逻辑删除;1：是；0：否；")
    private Long isDeleted;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("repliesId", getRepliesId())
                .append("reviewsId", getReviewsId())
                .append("repliesBy", getRepliesBy())
                .append("replyText", getReplyText())
                .append("replyTime", getReplyTime())
                .append("state", getState())
                .append("isDeleted", getIsDeleted())
                .toString();
    }
}
